﻿<Window 
    x:Class="SettingWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    mc:Ignorable="d"
    Title="Nicovideo Viewer Setting" 
    Width="300" Height="250" ResizeMode="NoResize" WindowStartupLocation="CenterOwner">
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <Label Content="Display screen:" VerticalAlignment="Center" />
            <ComboBox Name="ScreenNoComboBox" Grid.Column="1" VerticalAlignment="Center" Margin="5" />

            <Label Grid.Row="1" Content="Speed/Duration(sec):" VerticalAlignment="Center" />
            <TextBox Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" Width="80"
                     Text="{Binding Duration}" />

            <Label Grid.Row="2" Content="Samll font size:" VerticalAlignment="Center" />
            <TextBox Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" Width="80"
                     Text="{Binding SmallFontSize}" />

            <Label Grid.Row="3" Content="Normal font size:" VerticalAlignment="Center" />
            <TextBox Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" Width="80"
                     Text="{Binding NormalFontSize}" />

            <Label Grid.Row="4" Content="Large font size:" VerticalAlignment="Center" />
            <TextBox Grid.Row="4" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" Width="80"
                     Text="{Binding LargeFontSize}" />

        </Grid>

        <Button Content="Close" Grid.Row="1" Margin="0 5 0 0" HorizontalAlignment="Right" Width="80" Click="Button_Click" IsDefault="True" />
    </Grid>
</Window>